﻿package net.wangit.framework.dispatcher;

import net.wangit.Page;
import net.wangit.context.ActionContext;
import net.wangit.framework.debug.Recorder;
import net.wangit.view.page.PageFactory;

public class ViewWriter {

	public ViewWriter() {
	}

	public static void write(ActionContext ac, String domain, String unitId)
			throws Exception {
		Page page = PageFactory.getPage(ac, domain, unitId);
		if (Recorder.isEnabled())
			Recorder.record("create view objects");
		page.write(ac);
	}
}
